  <div class="box_newshot">
     <div class="box_title">&nbsp;&nbsp;&nbsp;<?=t(147)?></div>
         <? for ($i = 0; $i < 3/*count($this->viewParams['eventList'])*/; $i = $i + 1):?> 
          <?$event = $this->viewParams['eventList'][$i] ?>
          <?$thumb = str_replace("/original/","/medium/", $event['thumb']);?>
          <?$article = $this->viewParams['aList']; ?>
            <div class="list_event border_event" >
               <div class="news_title"><a href="<?=$this->hvnUrl(array('module' => 'event', 'action' => 'view'), 'nocontroller')?>?id=<?=$event['id']?>"><?=$article[$event['id']]->article_title?></a></div>
               <div class="clear"></div>
               <div class="news_img">
                 	<?
                 	    $userId = $this->viewParams['eventList'][$i]['poster_id'];
				    	$contentType = 'event';
				    	$id = $this->viewParams['eventList'][$i]['id'];
				    	$size = 'small';
				    	if (!$this->viewParams['eventList'][$i]['thumb'])
				    	{
				    		$ret = "<img src='/public/themes/prime/images/common/100x100_no_image.gif' />";
				    	}
				    	else
				    	{
					    	$url = $this->viewParams['eventList'][$i]['thumb'];
					    	$dir = APP_PATH.$url;
	                        	$smallImage = str_replace("/original/", "/small/", $dir);
								$ret = '<img src="'. $smallImage.'" style="width:100px;  height:90px;" />';     	
				    	} 	
                 	?>
                 	<?=$ret;?>
               </div>
               <div class="text"><?=str_first_words(strip_tags($article[$event['id']]->article_body), 26)?></div>
	    	   <div class="detail"><a href="<?=$this->hvnUrl(array('module' => 'event', 'action' => 'view'), 'nocontroller')?>?id=<?=$event['id']?>"><?=t(150)?>...</a></div>
        	</div>
		 <?endfor?>
  </div>
